From: Claudio Cambra Date: Fri, 24 Jan 2025 03:57:14 +0000 (+0800) Subject: shell_integration/macOS/FileProviderUIExt: Do not present share options view for... X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~12^2~2^2~79^2~3 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/success/%22http:/www.example.com/cgi/success?a=commitdiff_plain;h=33b3bc946e09354dd5bd1e0cd70119e19217aefa;p=nextcloud-desktop.git shell_integration/macOS/FileProviderUIExt: Do not present share options view for uneditable and undeletable shares Signed-off-by: Claudio Cambra --- diff --git a/shell_integration/MacOSX/NextcloudIntegration/FileProviderUIExt/Sharing/ShareViewController.swift b/shell_integration/MacOSX/NextcloudIntegration/FileProviderUIExt/Sharing/ShareViewController.swift index 79f6054c6..380822e8c 100644 --- a/shell_integration/MacOSX/NextcloudIntegration/FileProviderUIExt/Sharing/ShareViewController.swift +++ b/shell_integration/MacOSX/NextcloudIntegration/FileProviderUIExt/Sharing/ShareViewController.swift @@ -176,7 +176,7 @@ class ShareViewController: NSViewController, ShareViewDataSourceUIDelegate { } func showOptions(share: NKShare) { - guard let account = shareDataSource.account else { return } + guard let account = shareDataSource.account, share.canEdit || share.canDelete else { return } optionsView.account = account optionsView.controller = ShareController( share: share, account: account, kit: shareDataSource.kit